﻿<Window x:Class="Topographic_Explorer.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="Topographic Explorer" Height="700" Width="1200">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="23" />
			<RowDefinition Height="580*" />
			<RowDefinition Height="100*" />
		</Grid.RowDefinitions>
		<Grid Grid.Row="0">
			<Menu Height="23" HorizontalAlignment="Stretch" Name="menu1" VerticalAlignment="Top" Grid.ColumnSpan="3">
				<MenuItem Header="File">
					<MenuItem Header="Open..." Command="ApplicationCommands.Open" />
					<MenuItem Header="Save..." Command="ApplicationCommands.Save" />
					<MenuItem Command="ApplicationCommands.SaveAs" Header="Save As..." />
					<Separator />
					<MenuItem Command="ApplicationCommands.Close" Header="Quit" IsEnabled="True" />
				</MenuItem>
				<MenuItem Header="Edit">
					<MenuItem Command="ApplicationCommands.Undo" Header="Undo" />
					<MenuItem Command="ApplicationCommands.Redo" Header="Redo" />
					<Separator />
					<MenuItem Command="ApplicationCommands.Copy" Header="Copy" />
					<MenuItem Command="ApplicationCommands.Paste" Header="Paste" />
					<MenuItem Command="ApplicationCommands.Cut" Header="Cut" />
				</MenuItem>
			</Menu>
		</Grid>
		<Grid Background="#FFEAEAEA" Grid.Row="1" Name="ViewerGrid">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="580*" />
				<ColumnDefinition Width="50*" />
				<ColumnDefinition Width="580*" />
			</Grid.ColumnDefinitions>
			<Viewport3D Name="mapViewport" ClipToBounds="True">
				<Viewport3D.Camera>
					<PerspectiveCamera FarPlaneDistance="100" LookDirection="0,-1,0" UpDirection="0,0,1" NearPlaneDistance="1" Position="50,50,50" FieldOfView="70" />
				</Viewport3D.Camera>
				<ModelVisual3D>
					<ModelVisual3D.Content>
						<DirectionalLight Color="White" Direction="0,-1,0" />
					</ModelVisual3D.Content>
				</ModelVisual3D>
			</Viewport3D>
			<Viewport3D Name="cameraViewport" Margin="0,0,0,0" Grid.Column="2" MouseWheel="Zoom">
				<Viewport3D.Camera>
					<PerspectiveCamera FarPlaneDistance="100" LookDirection="-11,-10,-9" UpDirection="0,1,0" NearPlaneDistance="1" Position="11,10,9" FieldOfView="70" />
				</Viewport3D.Camera>
				<ModelVisual3D>
					<ModelVisual3D.Content>
						<DirectionalLight Color="White" Direction="-2,-3,-1" />
					</ModelVisual3D.Content>
				</ModelVisual3D>
			</Viewport3D>
		</Grid>
		<Grid Grid.Row="2">
			<Button Content="Generate" Margin="0,0,6,6" Name="openButton" Click="openButton_Click" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75" />
		</Grid>

	</Grid>
</Window>
